﻿using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace MenuGame2DXNA
{
    public class BombPlayers : Character
    {

        public BombPlayers(ContentManager content, string strTexturePreFix, int nTextures, Vector2 topleft, Vector2 size, sMainGame mainGame)
            : base(content, strTexturePreFix, nTextures, topleft, size,mainGame)
        {
    
        }
        public override void AddBomb(GameTime gameTime)
        {
            _mainGame.bombManager.AddBoom(this, gameTime, 10);

        }
        public override void Update(GameTime gameTime, Color color)
        {
            switch (moveOrient)
            {
                case MOVEORIENT.MOVELEFT: MoveLeft(true); break;
                case MOVEORIENT.MOVERIGHT: MoveRight(true); break;
                case MOVEORIENT.MOVEUP: MoveUp(true); break;
                case MOVEORIENT.MOVEDOWN: MoveDown(true); break;
            }
            base.Update(gameTime, color);
        }
    }
}
